//
//  WSFeedbackImageCell.m
//  CharonTVProject
//
//  Created by karong on 2023/8/7.
//

#import "WSFeedbackImageCell.h"
#import "WSFeedbackType.h"

@interface WSFeedbackImageCell ()

@property (weak, nonatomic) IBOutlet UIButton *imageBtn;
@property (weak, nonatomic) IBOutlet UIButton *delBtn;

@end

@implementation WSFeedbackImageCell

- (void)setDataWithObject:(WSFeedbackImage *)object {
    self.delBtn.hidden = object.type == 0;
    [self.imageBtn setImage:object.image forState:(UIControlStateNormal)];
}

- (IBAction)delAction:(id)sender {
    if ([self.delegate respondsToSelector:@selector(feedbackImageCellDelAction:)]) {
        [self.delegate feedbackImageCellDelAction:self];
    }
}
@end
